extends TextureButton

# 获取更高级节点CustomerSpot
@onready var main_customer = get_parent().get_parent()

func _can_drop_data(at_position, data):
	#直接把任务派发给CustomerSpot
	if main_customer and main_customer.has_method("_can_drop_data"):
		return main_customer._can_drop_data(at_position, data)
	return false

func _drop_data(at_position, data):
	if main_customer and main_customer.has_method("_drop_data"):
		main_customer._drop_data(at_position, data)
